package com.gxa.finance.controller;

import com.gxa.common.commons.JsonResult;
import com.gxa.common.commons.R;
import com.gxa.finance.pojo.Bill;
import com.gxa.finance.service.OfficeTransferReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/finance/OfficeTransferReview")
public class OfficeTransferReviewController {

    @Autowired
    private OfficeTransferReviewService officeTransferReviewService;


    //1、分页查询
    @GetMapping(value = "/findOfficeDetailsReviewList")
    public JsonResult findOfficeDetailsReviewList(Integer currentPage, Integer pageSize){

        return officeTransferReviewService.findOfficeDetailsReviewList(currentPage,pageSize);

    }

    //2、高级查询
    @GetMapping(value = "findfindOfficeDetailsReviewSeniorList")
    public R findfindOfficeDetailsReviewSeniorList(Bill bill){

        return officeTransferReviewService.findfindOfficeDetailsReviewSeniorList(bill);
    }

    //3、修改
    @PostMapping(value = "updatefindOfficeDetailsReview")
    public R updatefindOfficeDetailsReview(Bill bill){
        return officeTransferReviewService.updatefindOfficeDetailsReview(bill);
    }


}
